<?php
/**
 * 
 * @author	ronnie  (comdeng@gmail.com)
 * @link		http://fillphp.com/
 * @date		2014-5-1 上午1:15:57
 * @file		index.php
 * @description 
 */
error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', true);

define('FR_ROOT', '/home/ronnie/document/sites/fillphp/src/fillphp/');
define('WEB_ROOT', dirname(__DIR__));

define('PAGE_ROOT', WEB_ROOT.'/page/');

define('HELPER_ROOT', WEB_ROOT.'/helper/');
define('TMP_ROOT', WEB_ROOT.'/tmp/');
define('LOG_ROOT', WEB_ROOT.'/log/');
define('CONF_ROOT', WEB_ROOT.'/conf/');

define('NAMESPACE_ROOT', '\com\demo');

if (is_readable(WEB_ROOT.'/bootstrap.php')) {
	include WEB_ROOT.'/bootstrap.php';
}

require_once FR_ROOT.'/DefaultDispatch.php';
$dispatch = new \fillphp\DefaultDispatch(NAMESPACE_ROOT);
$dispatch->dispatch();